package com.kk.testserverservice.model;

import android.util.Log;

import androidx.databinding.BaseObservable;

import com.kk.testserverservice.IBtnControl;



/**
 * @author wk
 * @date 2025/2/27 23:37
 * @describe
 */
public class MainModel extends BaseObservable {
    
    private static final String TAG = "_model__";
    private IBtnControl mIBtnControl;

    public void setIBtnControl(IBtnControl IBtnControl) {
        mIBtnControl = IBtnControl;
    }

    public void btnStartService(){
        Log.i(TAG, "btnStartService: ");
        if(mIBtnControl!=null)
            mIBtnControl.startService();
    }

    public void btnAddString(){
        Log.i(TAG, "btnAddString: ");
        if(mIBtnControl!=null)
        {
            mIBtnControl.addString();
        }
    }

    public void btnStringSize(){
        Log.i(TAG, "btnStringSize: ");
        if(mIBtnControl!=null)
        {
            mIBtnControl.getStringSize();
        }
    }

    public void btnGetString(){
        Log.i(TAG, "btnGetString: ");
        if(mIBtnControl!=null)
        {
            mIBtnControl.getString();
        }
    }
}
